<div id="content" style="background-color:#ffffff">
  <div id="content-header">
    <div id="breadcrumb"> <a href="?m=admin&t=main" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> 后台首页</a> <a href="#">群组管理</a> <a href="#" class="current">群组信息</a> </div>
  </div>
  <div class="container-fluid">
    <div class="row-fluid">
        <fieldset class="layui-elem-field">
          <legend>群组信息</legend>
          <div class="layui-field-box">
         
            <form id="form-wizard" class="layui-form" method="post" action="?m=admin&t=saveGroup&id=<{$gvar.fget.id}>">
             
                 <div class="layui-form-item">
                    <label class="layui-form-label">群组名称</label>
                    <div class="layui-input-block">
                      <input type="text" name="title" value="<{$data.title}>" lay-verify="required" autocomplete="off" placeholder="请输入用户名" class="layui-input">
                    </div>
                  </div>
                  <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">描述</label>
                    <div class="layui-input-block">
                      <textarea placeholder="请输入内容"  name="note" class="layui-textarea"><{$data.note}></textarea>
                    </div>
                  </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">权限</label>
                     <div class="layui-input-block">
                     <{foreach from=$root key=myId item=menu}>
              	  	
                 		<div class="control-group">
                 	 <label class="control-label" style="margin:0px; padding:9px 0 0 0"><{$menu.title}></label>
                     
                     
                     <input type="checkbox" title='执行(菜单显示)' name="auth[<{$menu.op}>][execute]" type="checkbox" value="1" <{if $menu.check}>checked="checked"<{/if}>/>
                  	
                	</div>
                    <{foreach from=$menu.menu key=myId_2 item=menu_2}>
                        <div class="control-group">
                          <label class="control-label" style="margin:0px; padding:9px 0 0 0"></label>
                          <div class="controls">
                            <span style=" width:160px; float:left; text-align:right;margin-top: 6px;"><{$menu_2.title}>：</span>
                            
                            <{if $menu_2.execute==1}>
                            <span style=" margin-left:10px"><span style=" color:green">菜单(默认页)</span></span>
                            <span><input  <{if $menu_2.execute_check}>checked="checked"<{/if}> name="auth[<{$menu_2.op}>][<{$menu_2.task}>][execute]" type="checkbox" value="1" style="margin:0px"/></span>
                            <{/if}>
                            
                            <{if $menu_2.select==1}>
                            <!--<span style=" margin-left:10px"><span style=" color: #00F">查询(列表)</span></span>
                            <span><input <{if $menu_2.select_check}>checked="checked"<{/if}> name="auth[<{$menu_2.op}>][<{$menu_2.task}>][select]" type="checkbox" value="1" style="margin:0px"/></span>-->
                            <{/if}>
                            
                            <{if $menu_2.insert==1}>
                            <span style=" margin-left:10px;color: #60F">新增/修改</span>
                            <span><input <{if $menu_2.insert_check}>checked="checked"<{/if}> name="auth[<{$menu_2.op}>][<{$menu_2.task}>][insert]" type="checkbox" value="1" style="margin:0px"/></span>
                            <{/if}>
                            
                            <{if $menu_2.delete==1}>
                            <span style=" margin-left:10px;color:red">删除</span>
                            <span><input <{if $menu_2.delete_check}>checked="checked"<{/if}> name="auth[<{$menu_2.op}>][<{$menu_2.task}>][delete]" type="checkbox" value="1" style="margin:0px"/></span>
                            <{/if}>
                            
                            <{if $menu_2.other==1}>
                            <span style=" margin-left:10px">其它权限</span>
                            <span><input <{if $menu_2.other_check}>checked="checked"<{/if}> name="auth[<{$menu_2.op}>][<{$menu_2.task}>][other]" type="checkbox" value="1" style="margin:0px"/></span>
                            <{/if}>
                          </div>
                        </div>
                        <{/foreach}>
                        
                    <{/foreach}>      
                    </div>
                  </div>
             
                </div>
                                         
              <div class="layui-form-item">
                <div class="layui-input-block">
                  <button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
                  
                 
                </div>
              </div>
            </form>
          </div>
        </fieldset>
</div>
<script>
layui.use(['form','tree','layer'], function(){
  var form = layui.form();
  var layer = layui.layer;
 
  
});
</script>